function [dist] = EuclideanDistance(X, Y, i, j)

dist = sqrt((X(i,2) - Y(j,2))^2 + (X(i,3) - Y(j,3))^2);

end